package com.lionxing.DNTG;

import org.cocos2d.layers.CCLayer;
import org.cocos2d.layers.CCScene;
import org.cocos2d.nodes.CCDirector;
import org.cocos2d.transitions.CCShrinkGrowTransition;


public class scenemanager extends Object {
	
	
	
	public static void go(CCScene layer)
	{
		
		CCDirector director = CCDirector.sharedDirector();
		
		
		director.replaceScene(CCShrinkGrowTransition.transition(0.8f, layer));
		

	}
	
	
	
	public static CCScene wrap(CCLayer layer)
	{
		
		CCScene newSecene = CCScene.node();
		
		newSecene.addChild(layer);
		
		return newSecene;
	}
	
	
	public static void goplay()
	{
		 CCScene scene = spLayer.scene();

	        // Make the Scene active
	    CCDirector.sharedDirector().runWithScene(scene);
		
	}

}
